package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.dormnet.dao.bean.Visitors;

public class VisitorsMappping implements BeanMapping{
	
	public Object mapping(ResultSet resultSet) throws SQLException {
		Visitors visitors = new Visitors();
		visitors.setDormid(resultSet.getInt("dormid"));
		visitors.setVid(resultSet.getInt("vid"));
		visitors.setSmallimage(resultSet.getString("smallimage"));
		visitors.setVtime(resultSet.getDate("vtime"));
		visitors.setVistorid(resultSet.getInt("vistorid"));
		return visitors;
	}

}
